123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302 |
- var rule = {
- title: '思古影视[V2]', // csp_AppYsV2
- host: 'https://siguyy.cn/api.php/app/',
- // hostJs:'print(HOST);let html=request(HOST,{headers:{"User-Agent":PC_UA}});let src=jsp.pdfh(html,"ul&&li:eq(1)&&a&&href");print(src);HOST=src+"/api.php/app/"',
- url: 'video?tid=fyclassfyfilter&limit=20&pg=fypage',
- class_name: '电影&连续剧&综艺&动漫',
- class_url: '1&2&3&4',
- filter_url: '&class={{fl.class}}&area={{fl.area}}&lang={{fl.lang}}&letter={{fl.letter}}&year={{fl.year}}&by={{fl.by}}',
- filter: 'H4sIAAAAAAAAA+2Z3W4aRxSA34VrX3hx4qR5lSoXqEK9qOuLRK0URZZsYwgQx2DLwaHgv8YY4hoMtuvCUuBldnaXt+iwZ84PVb1dtVbUVHvHd87O7PmZOWd2eJ2wEs++fp34Lv0q8SzxzUrq5cvEQmI19X1aoyo03UxW84+plR/SwXOrM3G2Nc20ZmINibUFI63U9fNGagB1Xr5nJmJAnbtRdtcrRmeA5iy2nFEd5wSgOZu7ajDEOQFoHBnOQO/Lf3DsAr4PAHV++1xtXxidAXpf8coboc6AsNPbH7KdMyBd4w3baYBsaZ874xO0BYDG5fam1U84DoDGHV1oy3EcQJR4upuXXmUXdQCkyxTdzZ9QB0C+D0sq20ffAVA3PdxzPzSMzgDNWXnjF2ycE4D8G3e8/V/VqIcuEtMTpTP/I2URgHQ7OVW6Rh0AZXFS1jnALAJwVOvu4S5FNQDSbU28X9ATA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=**&pg=fypage',
- searchable: 2,
- quickSearch: 0,
- filterable: 1,//是否启用分类筛选,
- // headers:{'User-Agent':'Dart/2.14 (dart:io)'},
- headers: {'User-Agent': 'okhttp/4.1.0'},
- timeout: 5000,
- // 分类筛选 /api.php/app/nav || /xgapp.php/v1/nav || /api.php/v1.vod/types
- // class_name:'电影&电视剧&动漫&综艺',
- // class_url:'20&21&22&23',
- play_parse: true,
- lazy: `js:
- let play_Url = '';
- if (/\\.m3u8|\\.mp4/.test(input)) {
- input = {
- jx: 0,
- url: input,
- parse: 0
- }
- } else if (/,/.test(input) && /url=/.test(input)) {
- input = input.split('url=');
- play_Url = input[0].split(',')[0];
- input = {
- jx: 0,
- url: input[1],
- playUrl: play_Url,
- parse: 1
- }
- } else if (/url=|id=/.test(input)) {
- input = {
- jx: 0,
- url: JSON.parse(request(input)).url,
- parse: 0
- }
- } else if (/youku|iqiyi|v\\.qq\\.com|pptv|sohu|le\\.com|1905\\.com|mgtv|bilibili|ixigua/.test(input)) {
- play_Url = /bilibili/.test(input) ? 'https://jx.xmflv.com/?url=' : 'https://jx.777jiexi.com/player/?url='; // type0的parse
- // play_Url = /bilibili/.test(input) ? 'https://jx.xmflv.com/?url=' : 'json:http://pandown.pro/app/kkdy.php?url='; // type1的parse可加'json:'直接解析url (除了蜂蜜的'影视TV',其它的壳皆可用)
- input = {
- jx: 0,
- url: input,
- playUrl: play_Url,
- parse: 1,
- header: JSON.stringify({
- 'user-agent': 'Mozilla/5.0',
- }),
- }
- } else {
- input
- }
- `,
- limit: 6,
- // 图片来源:'@Referer=https://api.douban.com/@User-Agent=Mozilla/5.0%20(Windows%20NT%2010.0;%20Win64;%20x64)%20AppleWebKit/537.36%20(KHTML,%20like%20Gecko)%20Chrome/113.0.0.0%20Safari/537.36',
- 推荐: `js:
- let d = [];
- let jsondata = [];
- let videoList = [];
- if (/v1\\.vod/.test(HOST)) {
- if(HOST.endsWith('/')){
- jsondata = JSON.parse(request(HOST + 'vodPhbAll'));
- } else {
- jsondata = JSON.parse(request(HOST + '/vodPhbAll'));
- }
- videoList = jsondata.data.list[0].vod_list;
- } else {
- if(HOST.endsWith('/')){
- jsondata = JSON.parse(request(HOST + 'index_video'));
- } else {
- jsondata = JSON.parse(request(HOST + '/index_video'));
- }
- videoList = /xgapp/.test(HOST)?jsondata.data[0].vlist:jsondata.list[0].vlist;
- }
- // log('videoList =========> '+stringify(videoList));
- videoList.forEach(it => {
- d.push({
- url:it.vod_id,
- title:it.vod_name,
- img:it.vod_pic.startsWith('https') ? it.vod_pic : it.vod_pic.startsWith('http') ? it.vod_pic.replace('http','https') : it.vod_pic.startsWith('//') ? 'https:' + it.vod_pic : it.vod_pic.startsWith('/') ? getHome(HOST) + it.vod_pic : getHome(HOST) + '/' + it.vod_pic,
- desc:it.vod_remarks,
- });
- });
- setResult(d);
- `,
- 一级: `js:
- let d = [];
- let jsondata = [];
- let videoList = [];
- if (/v1\\.vod/.test(HOST)) {
- input = input.replace('video','v1.vod').replace('tid','type').replace('pg=','page=');
- jsondata = JSON.parse(request(input));
- videoList = jsondata.data.list;
- } else {
- input = HOST + '/'+ input.split('/')[4];
- jsondata = JSON.parse(request(input));
- videoList = jsondata.list || jsondata.data;
- }
- // log('videoList =========> '+stringify(videoList));
- videoList.forEach(it => {
- d.push({
- url:it.vod_id,
- title:it.vod_name,
- img:it.vod_pic.startsWith('https') ? it.vod_pic : it.vod_pic.startsWith('http') ? it.vod_pic.replace('http','https') : it.vod_pic.startsWith('//') ? 'https:' + it.vod_pic : it.vod_pic.startsWith('/') ? getHome(HOST) + it.vod_pic : getHome(HOST) + '/' + it.vod_pic,
- desc:it.vod_remarks,
- });
- });
- setResult(d);
- `,
- 二级: `js:
- if (/v1\\.vod/.test(HOST)) {
- input = HOST + '/'+ input.split('/')[3];
- } else {
- input = HOST + '/'+ input.split('/')[3].replace('detail','video_detail').replace('vod_id','id');
- }
- try {
- let html = request(input);
- html = JSON.parse(html);
- let node = /xgapp/.test(HOST) ? html.data.vod_info : html.data;
- VOD = {
- vod_id: node.vod_id,
- vod_name: node.vod_name,
- vod_pic: node.vod_pic,
- type_name: node.vod_class,
- vod_year: node.vod_year,
- vod_area: node.vod_area,
- vod_remarks: node.vod_remarks,
- vod_actor: node.vod_actor,
- vod_director: node.vod_director,
- vod_content: node.vod_content.strip()
- };
- if (typeof play_url === 'undefined') {
- var play_url = ''
- }
- var name = {
- 'bfzym3u8': '暴风',
- '1080zyk': '优质',
- 'kuaikan': '快看',
- 'lzm3u8': '量子',
- 'ffm3u8': '非凡',
- 'haiwaikan': '海外看',
- 'gsm3u8': '光速',
- 'zuidam3u8': '最大',
- 'bjm3u8': '八戒',
- 'snm3u8': '索尼',
- 'wolong': '卧龙',
- 'xlm3u8': '新浪',
- 'yhm3u8': '樱花',
- 'tkm3u8': '天空',
- 'jsm3u8': '极速',
- 'wjm3u8': '无尽',
- 'sdm3u8': '闪电',
- 'kcm3u8': '快车',
- 'jinyingm3u8': '金鹰',
- 'fsm3u8': '飞速',
- 'tpm3u8': '淘片',
- 'lem3u8': '鱼乐',
- 'dbm3u8': '百度',
- 'tomm3u8': '番茄',
- 'ukm3u8': 'U酷',
- 'ikm3u8': '爱坤',
- 'hnzym3u8': '红牛资源',
- 'hnm3u8': '红牛',
- '68zy_m3u8': '68',
- 'kdm3u8': '酷点',
- 'bdxm3u8': '北斗星',
- 'qhm3u8': '奇虎',
- 'hhm3u8': '豪华',
- 'kbm3u8': '快播'
- };
- let episodes = /v1\\.vod/.test(HOST)?node.vod_play_list:node.vod_url_with_player;
- if (episodes != '') {
- let playMap = {};
- let arr = [];
- episodes.forEach(ep => {
- let from = [];
- if (/v1\\.vod/.test(HOST)) {
- from = ep.player_info.from||ep.player_info.show||ep.from||ep.show;
- } else {
- from = ep.code||ep.name;
- }
- if (!playMap.hasOwnProperty(from)) {
- playMap[from] = []
- }
- let parse_api = '';
- if (/v1\\.vod/.test(HOST)) {
- parse_api = ep.player_info.parse != null ? ep.player_info.parse : ep.player_info.parse2;
- // parse_api = /,/.test(parse_api) ? parse_api.split(',')[1] : parse_api;
- } else {
- parse_api = ep.parse_api;
- }
- log('parse_api =========> '+parse_api);
- if (parse_api != null && !/\\.m3u8|\\.mp4/.test(ep.url)) {
- parse_api = parse_api.replaceAll('..','.') ;
- ep.url = ep.url.replaceAll('$','$'+parse_api);
- }
- if (from != null) playMap[from].push(ep.url)
- });
- for (var key in playMap) {
- if ('bfzym3u8' == key) {
- arr.push({
- flag: name[key],
- url: playMap[key],
- sort: 1
- })
- } else if ('1080zyk' == key) {
- arr.push({
- flag: name[key],
- url: playMap[key],
- sort: 2
- })
- } else if ('kuaikan' == key) {
- arr.push({
- flag: name[key],
- url: playMap[key],
- sort: 3
- })
- } else if ('lzm3u8' == key) {
- arr.push({
- flag: name[key],
- url: playMap[key],
- sort: 4
- })
- } else if ('ffm3u8' == key) {
- arr.push({
- flag: name[key],
- url: playMap[key],
- sort: 5
- })
- } else if ('snm3u8' == key) {
- arr.push({
- flag: name[key],
- url: playMap[key],
- sort: 6
- })
- } else if ('qhm3u8' == key) {
- arr.push({
- flag: name[key],
- url: playMap[key],
- sort: 7
- })
- } else {
- arr.push({
- flag: name[key] ? name[key] : key,
- url: playMap[key],
- sort: 8
- })
- }
- }
- arr.sort((a, b) => a.sort - b.sort);
- let playFrom = [];
- let playList = [];
- arr.map(val => {
- if (!/undefined/.test(val.flag)) {
- playFrom.push(val.flag);
- playList.push(val.url);
- }
- })
- VOD.vod_play_from = playFrom.join('$$$');
- VOD.vod_play_url = playList.join('$$$');
- } else {
- VOD.vod_play_from = node.vod_play_from;
- VOD.vod_play_url = node.vod_play_url;
- }
- } catch (e) {
- log("获取二级详情页发生错误:" + e.message);
- }
- `,
- 搜索: `js:
- let d = [];
- let jsondata = [];
- let videoList = [];
- if (/v1\\.vod/.test(HOST)) {
- input = (HOST + '/'+ input.split('/')[3]).replace('/search','').replace('text=','wd=').replace('pg=','page=');
- jsondata = JSON.parse(request(input));
- videoList = jsondata.data.list;
- } else {
- input = HOST + '/'+ input.split('/')[3]
- jsondata = JSON.parse(request(input));
- videoList = jsondata.list || jsondata.data;
- }
- // log('videoList =========> '+stringify(videoList));
- videoList.forEach(it => {
- d.push({
- url:it.vod_id,
- title:it.vod_name,
- img:it.vod_pic.startsWith('https') ? it.vod_pic : it.vod_pic.startsWith('http') ? it.vod_pic.replace('http','https') : it.vod_pic.startsWith('//') ? 'https:' + it.vod_pic : it.vod_pic.startsWith('/') ? getHome(HOST) + it.vod_pic : getHome(HOST) + '/' + it.vod_pic,
- desc:it.vod_remarks,
- });
- });
- setResult(d);
- `,
- }
|